package com.pactera.miyuangroup.db.enums;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * 分配类型
 *
 * @author Wangwu
 * @create 2018-04-24 下午2:57
 **/
public enum DeliveryType implements IEnum {
    FIXED(0, "固定"),
    TEMPORARY(1, "临时");

    private int value;
    private String desc;

    DeliveryType(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }


    @Override
    public Serializable getValue() {
        return this.value;
    }

    @JsonValue
    public String getDesc() {
        return this.desc;
    }
}
